(in-package :cl-daisyui)


;; https://daisyui.com/components/breadcrumbs/
(defmacro breadcrumbs (class contents &rest attrs)
  `(spinneret:with-html
     (:div :class ,class ,@attrs
           ,contents)))

(defmacro bottom-navigation (class contents &rest attrs)
  `(spinneret:with-html
     (:div :class ,class ,@attrs
           ,@contents)))

(defmacro link (class href label &rest attrs)
  `(spinneret:with-html
     (html:a ,href ,label :class ,class ,@attrs)))

(defmacro menu (class menu-items &rest attrs)
  `(spinneret:with-html
     (:ul :class ,class ,@attrs
           ,@menu-items)))

;; https://daisyui.com/components/navbar/
(defmacro navbar (class nav-items &rest attrs)
  `(spinneret:with-html
     (:div :class ,class
           ,@attrs
           ,@nav-items)))

;; https://daisyui.com/components/tab/
(defmacro tab (class tab-items &rest attrs)
  `(spinneret:with-html
     (:div :role "tablist"
           :class ,class
           ,@attrs
           ,@tab-items)))
